package com.mrfechetto.gene.person;

import java.awt.Color;
import java.awt.Graphics;
import java.awt.Point;
import java.awt.image.BufferedImage;

import javax.swing.JPanel;

public class Person extends JPanel
{
   private static final long serialVersionUID = 1L;
   private BufferedImage image;
   
   private Point location;
   
   public BufferedImage getImage()
   {
      return image;
   }

   
   public void paintComponent(Graphics g) 
   {
      g.setColor(Color.black);
      g.fillOval(0, 0, 40, 40); 

      g.drawImage(getImage(), 0, 0, null);
   }
   
   public void setLocation(Point aLocation)
   {
      location = aLocation;
   }
   
   public Point getLocation()
   {
      return location;
   }
}
